////////////////////////////////////////////////
// MACHINE GENERATED, PLEASE DONOT MODIFY!    //
////////////////////////////////////////////////

using Google.Protobuf;
using UnityEngine;

namespace OutOfUnity
{
    public class NetworkingReceiver
    {
        public delegate void OnReceive_DummyEntityAck(DummyEntityAck msg);
        public delegate void OnReceive_LoginAck(LoginAck msg);
        public delegate void OnReceive_EchoAck(EchoAck msg);
        public delegate void OnReceive_EnterAck(EnterAck msg);
        public delegate void OnReceive_EnterNtf(EnterNtf msg);
        public delegate void OnReceive_LeaveNtf(LeaveNtf msg);
        public delegate void OnReceive_MoveNtf(MoveNtf msg);
        public delegate void OnReceive_PingAck(PingAck msg);
        public delegate void OnReceive_SceneEnterReq(SceneEnterReq msg);
        public delegate void OnReceive_SceneLeaveReq(SceneLeaveReq msg);
        public delegate void OnReceive_SceneLeaveNtf(SceneLeaveNtf msg);
        public delegate void OnReceive_SceneEnterNtf(SceneEnterNtf msg);
        public delegate void OnReceive_SceneMoveNtf(SceneMoveNtf msg);
        public delegate void OnReceive_LoginReq(LoginReq msg);
        public delegate void OnReceive_EchoReq(EchoReq msg);
        public delegate void OnReceive_EnterReq(EnterReq msg);
        public delegate void OnReceive_AddBuffNtf(AddBuffNtf msg);
        public delegate void OnReceive_SceneEnterAck(SceneEnterAck msg);
        public delegate void OnReceive_SceneLeaveAck(SceneLeaveAck msg);
        public delegate void OnReceive_RoleEnterNtf(RoleEnterNtf msg);
        public delegate void OnReceive_RoleLeaveNtf(RoleLeaveNtf msg);
        public delegate void OnReceive_RoleMoveNtf(RoleMoveNtf msg);
        public delegate void OnReceive_ClientMoveNtf(ClientMoveNtf msg);
        public delegate void OnReceive_PingReq(PingReq msg);
        public delegate void OnReceive_DummyReq(DummyReq msg);
        public delegate void OnReceive_DummyEntityReq(DummyEntityReq msg);
        private OnReceive_DummyEntityAck OnDummyEntityAck_;
        private OnReceive_LoginAck OnLoginAck_;
        private OnReceive_EchoAck OnEchoAck_;
        private OnReceive_EnterAck OnEnterAck_;
        private OnReceive_EnterNtf OnEnterNtf_;
        private OnReceive_LeaveNtf OnLeaveNtf_;
        private OnReceive_MoveNtf OnMoveNtf_;
        private OnReceive_PingAck OnPingAck_;
        private OnReceive_SceneEnterReq OnSceneEnterReq_;
        private OnReceive_SceneLeaveReq OnSceneLeaveReq_;
        private OnReceive_SceneLeaveNtf OnSceneLeaveNtf_;
        private OnReceive_SceneEnterNtf OnSceneEnterNtf_;
        private OnReceive_SceneMoveNtf OnSceneMoveNtf_;
        private OnReceive_LoginReq OnLoginReq_;
        private OnReceive_EchoReq OnEchoReq_;
        private OnReceive_EnterReq OnEnterReq_;
        private OnReceive_AddBuffNtf OnAddBuffNtf_;
        private OnReceive_SceneEnterAck OnSceneEnterAck_;
        private OnReceive_SceneLeaveAck OnSceneLeaveAck_;
        private OnReceive_RoleEnterNtf OnRoleEnterNtf_;
        private OnReceive_RoleLeaveNtf OnRoleLeaveNtf_;
        private OnReceive_RoleMoveNtf OnRoleMoveNtf_;
        private OnReceive_ClientMoveNtf OnClientMoveNtf_;
        private OnReceive_PingReq OnPingReq_;
        private OnReceive_DummyReq OnDummyReq_;
        private OnReceive_DummyEntityReq OnDummyEntityReq_;
        public OnReceive_DummyEntityAck OnDummyEntityAck
        {
             set
             {
                 OnDummyEntityAck_ = value;
             }
        }
        public OnReceive_LoginAck OnLoginAck
        {
             set
             {
                 OnLoginAck_ = value;
             }
        }
        public OnReceive_EchoAck OnEchoAck
        {
             set
             {
                 OnEchoAck_ = value;
             }
        }
        public OnReceive_EnterAck OnEnterAck
        {
             set
             {
                 OnEnterAck_ = value;
             }
        }
        public OnReceive_EnterNtf OnEnterNtf
        {
             set
             {
                 OnEnterNtf_ = value;
             }
        }
        public OnReceive_LeaveNtf OnLeaveNtf
        {
             set
             {
                 OnLeaveNtf_ = value;
             }
        }
        public OnReceive_MoveNtf OnMoveNtf
        {
             set
             {
                 OnMoveNtf_ = value;
             }
        }
        public OnReceive_PingAck OnPingAck
        {
             set
             {
                 OnPingAck_ = value;
             }
        }
        public OnReceive_SceneEnterReq OnSceneEnterReq
        {
             set
             {
                 OnSceneEnterReq_ = value;
             }
        }
        public OnReceive_SceneLeaveReq OnSceneLeaveReq
        {
             set
             {
                 OnSceneLeaveReq_ = value;
             }
        }
        public OnReceive_SceneLeaveNtf OnSceneLeaveNtf
        {
             set
             {
                 OnSceneLeaveNtf_ = value;
             }
        }
        public OnReceive_SceneEnterNtf OnSceneEnterNtf
        {
             set
             {
                 OnSceneEnterNtf_ = value;
             }
        }
        public OnReceive_SceneMoveNtf OnSceneMoveNtf
        {
             set
             {
                 OnSceneMoveNtf_ = value;
             }
        }
        public OnReceive_LoginReq OnLoginReq
        {
             set
             {
                 OnLoginReq_ = value;
             }
        }
        public OnReceive_EchoReq OnEchoReq
        {
             set
             {
                 OnEchoReq_ = value;
             }
        }
        public OnReceive_EnterReq OnEnterReq
        {
             set
             {
                 OnEnterReq_ = value;
             }
        }
        public OnReceive_AddBuffNtf OnAddBuffNtf
        {
             set
             {
                 OnAddBuffNtf_ = value;
             }
        }
        public OnReceive_SceneEnterAck OnSceneEnterAck
        {
             set
             {
                 OnSceneEnterAck_ = value;
             }
        }
        public OnReceive_SceneLeaveAck OnSceneLeaveAck
        {
             set
             {
                 OnSceneLeaveAck_ = value;
             }
        }
        public OnReceive_RoleEnterNtf OnRoleEnterNtf
        {
             set
             {
                 OnRoleEnterNtf_ = value;
             }
        }
        public OnReceive_RoleLeaveNtf OnRoleLeaveNtf
        {
             set
             {
                 OnRoleLeaveNtf_ = value;
             }
        }
        public OnReceive_RoleMoveNtf OnRoleMoveNtf
        {
             set
             {
                 OnRoleMoveNtf_ = value;
             }
        }
        public OnReceive_ClientMoveNtf OnClientMoveNtf
        {
             set
             {
                 OnClientMoveNtf_ = value;
             }
        }
        public OnReceive_PingReq OnPingReq
        {
             set
             {
                 OnPingReq_ = value;
             }
        }
        public OnReceive_DummyReq OnDummyReq
        {
             set
             {
                 OnDummyReq_ = value;
             }
        }
        public OnReceive_DummyEntityReq OnDummyEntityReq
        {
             set
             {
                 OnDummyEntityReq_ = value;
             }
        }
    public void onMessage(uint msgID, IMessage msg)
    {
         switch (msgID)
         {
            case ProtocolID.DUMMYENTITYACK:
                if (OnDummyEntityAck_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnDummyEntityAck_((DummyEntityAck)msg);
                break;
            case ProtocolID.LOGINACK:
                if (OnLoginAck_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnLoginAck_((LoginAck)msg);
                break;
            case ProtocolID.ECHOACK:
                if (OnEchoAck_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnEchoAck_((EchoAck)msg);
                break;
            case ProtocolID.ENTERACK:
                if (OnEnterAck_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnEnterAck_((EnterAck)msg);
                break;
            case ProtocolID.ENTERNTF:
                if (OnEnterNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnEnterNtf_((EnterNtf)msg);
                break;
            case ProtocolID.LEAVENTF:
                if (OnLeaveNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnLeaveNtf_((LeaveNtf)msg);
                break;
            case ProtocolID.MOVENTF:
                if (OnMoveNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnMoveNtf_((MoveNtf)msg);
                break;
            case ProtocolID.PINGACK:
                if (OnPingAck_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnPingAck_((PingAck)msg);
                break;
            case ProtocolID.SCENEENTERREQ:
                if (OnSceneEnterReq_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnSceneEnterReq_((SceneEnterReq)msg);
                break;
            case ProtocolID.SCENELEAVEREQ:
                if (OnSceneLeaveReq_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnSceneLeaveReq_((SceneLeaveReq)msg);
                break;
            case ProtocolID.SCENELEAVENTF:
                if (OnSceneLeaveNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnSceneLeaveNtf_((SceneLeaveNtf)msg);
                break;
            case ProtocolID.SCENEENTERNTF:
                if (OnSceneEnterNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnSceneEnterNtf_((SceneEnterNtf)msg);
                break;
            case ProtocolID.SCENEMOVENTF:
                if (OnSceneMoveNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnSceneMoveNtf_((SceneMoveNtf)msg);
                break;
            case ProtocolID.LOGINREQ:
                if (OnLoginReq_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnLoginReq_((LoginReq)msg);
                break;
            case ProtocolID.ECHOREQ:
                if (OnEchoReq_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnEchoReq_((EchoReq)msg);
                break;
            case ProtocolID.ENTERREQ:
                if (OnEnterReq_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnEnterReq_((EnterReq)msg);
                break;
            case ProtocolID.ADDBUFFNTF:
                if (OnAddBuffNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnAddBuffNtf_((AddBuffNtf)msg);
                break;
            case ProtocolID.SCENEENTERACK:
                if (OnSceneEnterAck_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnSceneEnterAck_((SceneEnterAck)msg);
                break;
            case ProtocolID.SCENELEAVEACK:
                if (OnSceneLeaveAck_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnSceneLeaveAck_((SceneLeaveAck)msg);
                break;
            case ProtocolID.ROLEENTERNTF:
                if (OnRoleEnterNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnRoleEnterNtf_((RoleEnterNtf)msg);
                break;
            case ProtocolID.ROLELEAVENTF:
                if (OnRoleLeaveNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnRoleLeaveNtf_((RoleLeaveNtf)msg);
                break;
            case ProtocolID.ROLEMOVENTF:
                if (OnRoleMoveNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnRoleMoveNtf_((RoleMoveNtf)msg);
                break;
            case ProtocolID.CLIENTMOVENTF:
                if (OnClientMoveNtf_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnClientMoveNtf_((ClientMoveNtf)msg);
                break;
            case ProtocolID.PINGREQ:
                if (OnPingReq_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnPingReq_((PingReq)msg);
                break;
            case ProtocolID.DUMMYREQ:
                if (OnDummyReq_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnDummyReq_((DummyReq)msg);
                break;
            case ProtocolID.DUMMYENTITYREQ:
                if (OnDummyEntityReq_ == null)
                {
                    Debug.Log("Message handler not found:" + msg.GetType().Name);
                    return;
                }
                OnDummyEntityReq_((DummyEntityReq)msg);
                break;
         }
    }
    }
}
